#ifndef OMSCODEHELPER_H
#define OMSCODEHELPER_H
#include "QString"
#include<QWidget>
class omsCodeHelper{
public:
    omsCodeHelper();

    //init
    bool init(QWidget *Widget, QString packageName, QString dirPath, QString simName, QString inputFileName, QString outputFileName, QString JAVAHOME);
    //Fix Main.java
    bool readMain();

    //Fix ModelPackHandle.java
//    QString readMPHdle();

    //Fix PathUtil.java
    bool readPathUtil();

    //Fix Utils.java
    bool readUtils();

    //Fix MANIFEST.MF
    bool readManifest();

    //Fix compile.bat
    bool readCompile();

    //license
    bool getLicense(QString AreaText);
    //compile
    bool omsCompile();

    //GeneratePackage
    int omsPackage();

    //Save file
    bool saveFile(QString filename,QString& str);

private:
    QString packageName;
    QString DirPath;
    QString simName;
    QString inputFileName;
    QString outputFileName;
    QWidget *widget;
    QString javaHome;


};


#endif // OMSCODEHELPER_H
